import http from '../utils/http';

export function getCurrnetUser(params) {
    return http.get('/api/currentUser', params);
}

export function getVaildCode(params) {
    return http.get('/api/code', params);
}

export function login(params) {
    return http.post('/api/login', params);
}

export function logout(params) {
    return http.post('/api/logout', params);
}


